package ucm;

import client.Client;

/**
 * UCLoginAdmin
 *
 * Primary Actor: User
 * Goal: Login Admin
 * Precondition: Connected to database. User exists on database. User is not logged in.
 * Postcondition: User is logged into system.
 *
 * @author Tobias Robinson
 */
public class UCLoginAdmin {

    public UCLoginAdmin() {
        run();
    }

    /**
     * 1. Actor selects Login Admin.
     * 2. The system requests the actor to enter user info.
     * 4. System verifies user input.
     * 5. System updates user status.
     * 6. System notifies actor they are logged in.
     */
    public void run() {
        Client.getInstance().logIn("admin");
    }
}
